<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Admin Area</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" type="text/css" href="library/screen.css" media="screen" />
<link rel="stylesheet" type="text/css" href="library/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="library/prettyPhoto.css" media="screen" />
<link rel="stylesheet" type="text/css" href="library/jquery-ui-1.8.2.custom.css" media="screen" />
<script type="text/javascript" src="library/jquery.js"></script>
<script type="text/javascript" src="library/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="library/jquery.prettyPhoto.js"></script>
<script type="text/javascript" src="library/global.js"></script>
<script type="text/javascript" src="library/jquery.ui.core.js"></script>
<script type="text/javascript" src="library/jquery.ui.datepicker.js"></script>
<?php echo $additionalMeta; ?>
</head>
<body>
<div id="container">
<div id="header_bg">
<div id="layout">

<div id="header">
<div id="header_left"><h1><a href="/admin">Admin Control Panel</a></h1></div>
<div id="header_right"><?php echo (!isset($_SESSION['operator'])) ? '<a href="/" target="_blank" style="width: 67px;"><span>view website</span></a>' : '' ; ?> <a href="logout.php" style="width: 39px;"><span>logout</span></a></div>
</div>

<div id="navigation">
<ul>
<li<?php echo ($home_nav) ? ' class="active"' : '' ; ?>><a href="index.php">Dashboard</a></li>
<li<?php echo ($jobs_nav) ? ' class="active"' : '' ; ?>><a href="jobs.php">Jobs</a></li>
<li<?php echo ($tradesmen_nav) ? ' class="active"' : '' ; ?>><a href="tradesmen.php">Tradesmen</a></li>
<li<?php echo ($users_nav) ? ' class="active"' : '' ; ?>><a href="users.php">Users</a></li>
<li<?php echo ($content_nav) ? ' class="active"' : '' ; ?>><a>Content</a>
	<ul<?php echo ($content_nav) ? ' style="display: block;"' : '' ; ?>>
	<li><a href="content.php">Pages</a></li>
	<li><a href="blog.php">Blog</a></li>
	<li><a href="directory.php">Directory</a></li>
	<li><a href="faqs.php">FAQs</a></li>
	</ul>
</li>
<li<?php echo ($newsletter_nav) ? ' class="active"' : '' ; ?>><a href="newsletter.php">Newsletter</a></li>
<li<?php echo ($settings_nav) ? ' class="active"' : '' ; ?>><a>Settings</a>
	<ul<?php echo ($settings_nav) ? ' style="display: block;"' : '' ; ?>>
	<li><a href="banners.php">Banners</a></li>
	<li><a href="trades.php">Trades</a></li>
	<li><a href="directory_categories.php">Directory Categories</a></li>
	<li><a href="subscriptions.php">Subscriptions</a></li>
	<li><a href="sms_packages.php">SMS Packages</a></li>
	</ul>
</li>
</ul>
</div>

<div id="content">

<h1 id="page_header"><?php

if($home_nav){
echo 'Dashboard';
}

elseif($jobs_nav){
echo 'Jobs';
}

elseif($tradesmen_nav){
echo 'Tradesmen';
}

elseif($users_nav){
echo 'Users';
}

elseif($content_nav){
echo 'Content';
}

else{
echo 'Admin';
}

?></h1>